package models;

import java.util.*;
import javax.persistence.*;

import play.db.ebean.*;
import play.data.format.*;
import play.data.validation.*;

import com.avaje.ebean.*;

/**
 * Customer entity managed by Ebean
 */
@Entity 
public class Customer extends Model {

    @Id
    public Long ID;
    
    @Constraints.Required
    @ManyToOne
    public Long tenant_id;
    
    @Constraints.Required
    public String name;
    
    /**
     * Generic query helper for entity Customer with id Long
     */
    public static Finder<Long,Customer> find = new Finder<Long,Customer>(Long.class, Customer.class);
    
    
}

